<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CWaveIO Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CWaveIO Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CWaveIO" --><!-- doxytag: inherits="ISampleIO" -->
<p><code>#include &lt;<a class="el" href="wave__io_8h_source.html">wave_io.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CWaveIO:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCWaveIO.png" usemap="#CWaveIO_map" alt=""/>
  <map id="CWaveIO_map" name="CWaveIO_map">
<area href="classISampleIO.html" alt="ISampleIO" shape="rect" coords="0,0,69,24"/>
</map>
 </div></div>

<p><a href="classCWaveIO-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a084f3edb7cd029cdb8af349fb3e256f3">CWaveIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction, std::string pWavInputFile, std::string pWavOutputFile, double pDiscardTime)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a1639eb22c59fddfdfee87d83c9d3b999">CWaveIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction, std::string pWavInputFile, bool pReplayInput)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#ab8bce7990c4e0e6b2341eb623dc39903">CWaveIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction, std::string pWavOutputFile, <a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> pStreamInfo)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#af0d39cbad670ee18970d39b4cbb011c4">~CWaveIO</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#aaa8e7eb8813f388fca7ca70205105d03">init</a> (<a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *pConfig)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a87e3fbd7fa9ba9555c72a5aade4494b4">destroy</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#aa510ff6ab283ba7ce92e8405b5aed505">read</a> (void **pData, <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;pAction, int pTimeout=1000)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a50b4a495002aca5a6e4e9bdde80fe5cf">read</a> (void **pData, <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;pAction, int pTimeout, int pMaxRead)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a142ebb8a033f2ffc6f733c70a26ec7d0">write</a> (void *pData, const <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;pAction, int pLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a32288b446b36daf22a72ac1bdc4bb772">getStreamInfo</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-types"></a>
Private Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a87e105afa1a6bb0a49fa70abd3ec24ea">EInitError</a> { <a class="el" href="classCWaveIO.html#a87e105afa1a6bb0a49fa70abd3ec24eaab98f25e9388e0e349eaedaf646431d4e">INIT_NO_ERROR</a> =  0, 
<a class="el" href="classCWaveIO.html#a87e105afa1a6bb0a49fa70abd3ec24eaa4e0f9fce79ffab95e205f9a4b31c0219">INIT_FAILURE</a> =  1, 
<a class="el" href="classCWaveIO.html#a87e105afa1a6bb0a49fa70abd3ec24eaa3ef548258c9cf797de95c46851163993">INIT_WAVE_INPUT_ERROR</a> =  2, 
<a class="el" href="classCWaveIO.html#a87e105afa1a6bb0a49fa70abd3ec24eaaff880a13e3b8075553882625fbc22c49">INIT_WAVE_OUTPUT_ERROR</a> =  3
 }</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#ae746590f750fe373aec1faf612d3bbd2">CWaveIO</a> (const <a class="el" href="classCWaveIO.html">CWaveIO</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCWaveIO.html">CWaveIO</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a19b7c3e5792af401a2eaa2703064e8a2">operator=</a> (const <a class="el" href="classCWaveIO.html">CWaveIO</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a3a46707de0b4dff1d2aabf37047d3212">openInputFile</a> (std::string pMonoWavInputFile)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">NAudioFormats::ESamplesWidth</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a480c1f01295df571756ca8553b47490d">getSampleWidth</a> (unsigned int pBitsPerSample)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a1261d34087c1ca3af7d988695252fd71">getBitsPerSample</a> (<a class="el" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">NAudioFormats::ESamplesWidth</a> pSampleWidth)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a6f7f26afb68a4d90d3a13f6321464ea5">getCodec</a> (<a class="el" href="namespaceNWaveFormatTag.html#a984a591ddf2ea06019b5881d5b83364d">NWaveFormatTag::EFormatTag</a> pWaveFormatTag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceNWaveFormatTag.html#a984a591ddf2ea06019b5881d5b83364d">NWaveFormatTag::EFormatTag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a1f42a89f715cca459f1d57879dec2b4e">getWaveFormatTag</a> (<a class="el" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a> pCodec)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCWaveIO.html#a87e105afa1a6bb0a49fa70abd3ec24ea">EInitError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a840699af632277923a70a0228fb03256">mError</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a3808e48d44b485bb520dad3c6035d010">mAction</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCRiffWave.html">CRiffWave</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a07addea538ef0c82d7c7428f1e150200">mWavIn</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCRiffWaveWriter.html">CRiffWaveWriter</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#abd638048ba09d8ff170aef8639406c4d">mWavOut</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a869289411bf4dec1b0c8a091a4303c16">mReadByteBuffer</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a06434e47bf8160e95b3ba05d09234a04">mReplayInput</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a8e4204695f7396613b8965ea3964d226">mDiscardByteCount</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#a4baca210310c73d64ef3289ef2711598">mBytePerSample</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#aae408d020756faba8e4b8457ed889bc8">mStreamInfo</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#ab3f14eee2da307b2e708de2601f3d774">mReadInRealtime</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCWaveIO.html#ab88b12dbc2d6f32cba9382df7a150fcd">sIniSectionName</a></td></tr>
</table>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a87e105afa1a6bb0a49fa70abd3ec24ea"></a><!-- doxytag: member="CWaveIO::EInitError" ref="a87e105afa1a6bb0a49fa70abd3ec24ea" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCWaveIO.html#a87e105afa1a6bb0a49fa70abd3ec24ea">CWaveIO::EInitError</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a87e105afa1a6bb0a49fa70abd3ec24eaab98f25e9388e0e349eaedaf646431d4e"></a><!-- doxytag: member="INIT_NO_ERROR" ref="a87e105afa1a6bb0a49fa70abd3ec24eaab98f25e9388e0e349eaedaf646431d4e" args="" -->INIT_NO_ERROR</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a87e105afa1a6bb0a49fa70abd3ec24eaa4e0f9fce79ffab95e205f9a4b31c0219"></a><!-- doxytag: member="INIT_FAILURE" ref="a87e105afa1a6bb0a49fa70abd3ec24eaa4e0f9fce79ffab95e205f9a4b31c0219" args="" -->INIT_FAILURE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a87e105afa1a6bb0a49fa70abd3ec24eaa3ef548258c9cf797de95c46851163993"></a><!-- doxytag: member="INIT_WAVE_INPUT_ERROR" ref="a87e105afa1a6bb0a49fa70abd3ec24eaa3ef548258c9cf797de95c46851163993" args="" -->INIT_WAVE_INPUT_ERROR</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a87e105afa1a6bb0a49fa70abd3ec24eaaff880a13e3b8075553882625fbc22c49"></a><!-- doxytag: member="INIT_WAVE_OUTPUT_ERROR" ref="a87e105afa1a6bb0a49fa70abd3ec24eaaff880a13e3b8075553882625fbc22c49" args="" -->INIT_WAVE_OUTPUT_ERROR</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a084f3edb7cd029cdb8af349fb3e256f3"></a><!-- doxytag: member="CWaveIO::CWaveIO" ref="a084f3edb7cd029cdb8af349fb3e256f3" args="(EAction pAction, std::string pWavInputFile, std::string pWavOutputFile, double pDiscardTime)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CWaveIO::CWaveIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>pWavInputFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>pWavOutputFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>pDiscardTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>for read and write </p>

</div>
</div>
<a class="anchor" id="a1639eb22c59fddfdfee87d83c9d3b999"></a><!-- doxytag: member="CWaveIO::CWaveIO" ref="a1639eb22c59fddfdfee87d83c9d3b999" args="(EAction pAction, std::string pWavInputFile, bool pReplayInput)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CWaveIO::CWaveIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>pWavInputFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>pReplayInput</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>only for read </p>

</div>
</div>
<a class="anchor" id="ab8bce7990c4e0e6b2341eb623dc39903"></a><!-- doxytag: member="CWaveIO::CWaveIO" ref="ab8bce7990c4e0e6b2341eb623dc39903" args="(EAction pAction, std::string pWavOutputFile, NAudioFormats::SStreamInfo pStreamInfo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CWaveIO::CWaveIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>pWavOutputFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td>
          <td class="paramname"><em>pStreamInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>only for write </p>

</div>
</div>
<a class="anchor" id="af0d39cbad670ee18970d39b4cbb011c4"></a><!-- doxytag: member="CWaveIO::~CWaveIO" ref="af0d39cbad670ee18970d39b4cbb011c4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CWaveIO::~CWaveIO </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae746590f750fe373aec1faf612d3bbd2"></a><!-- doxytag: member="CWaveIO::CWaveIO" ref="ae746590f750fe373aec1faf612d3bbd2" args="(const CWaveIO &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CWaveIO::CWaveIO </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCWaveIO.html">CWaveIO</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a87e3fbd7fa9ba9555c72a5aade4494b4"></a><!-- doxytag: member="CWaveIO::destroy" ref="a87e3fbd7fa9ba9555c72a5aade4494b4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CWaveIO::destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classISampleIO.html#a4a3ef7be5c5abba7f9993913380cb14f">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a1261d34087c1ca3af7d988695252fd71"></a><!-- doxytag: member="CWaveIO::getBitsPerSample" ref="a1261d34087c1ca3af7d988695252fd71" args="(NAudioFormats::ESamplesWidth pSampleWidth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CWaveIO::getBitsPerSample </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">NAudioFormats::ESamplesWidth</a>&#160;</td>
          <td class="paramname"><em>pSampleWidth</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6f7f26afb68a4d90d3a13f6321464ea5"></a><!-- doxytag: member="CWaveIO::getCodec" ref="a6f7f26afb68a4d90d3a13f6321464ea5" args="(NWaveFormatTag::EFormatTag pWaveFormatTag)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a> CWaveIO::getCodec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceNWaveFormatTag.html#a984a591ddf2ea06019b5881d5b83364d">NWaveFormatTag::EFormatTag</a>&#160;</td>
          <td class="paramname"><em>pWaveFormatTag</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a480c1f01295df571756ca8553b47490d"></a><!-- doxytag: member="CWaveIO::getSampleWidth" ref="a480c1f01295df571756ca8553b47490d" args="(unsigned int pBitsPerSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">NAudioFormats::ESamplesWidth</a> CWaveIO::getSampleWidth </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pBitsPerSample</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a32288b446b36daf22a72ac1bdc4bb772"></a><!-- doxytag: member="CWaveIO::getStreamInfo" ref="a32288b446b36daf22a72ac1bdc4bb772" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> CWaveIO::getStreamInfo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classISampleIO.html#a9e43c9190bd486f654f930aa49af48d1">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a1f42a89f715cca459f1d57879dec2b4e"></a><!-- doxytag: member="CWaveIO::getWaveFormatTag" ref="a1f42a89f715cca459f1d57879dec2b4e" args="(NAudioFormats::ECodec pCodec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceNWaveFormatTag.html#a984a591ddf2ea06019b5881d5b83364d">NWaveFormatTag::EFormatTag</a> CWaveIO::getWaveFormatTag </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a>&#160;</td>
          <td class="paramname"><em>pCodec</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aaa8e7eb8813f388fca7ca70205105d03"></a><!-- doxytag: member="CWaveIO::init" ref="aaa8e7eb8813f388fca7ca70205105d03" args="(CPropertiesReader *pConfig)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CWaveIO::init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *&#160;</td>
          <td class="paramname"><em>pConfig</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="note"><dt><b>Note:</b></dt><dd>The instance of the properties reader will be freed (delete) by the main programm and is not allowed by the deconstructor of an inherit IO class.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pConfig</td><td>pointer to the properties reader </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 on success, -1 otherwise </dd></dl>

<p>Implements <a class="el" href="classISampleIO.html#ab8ef7dd9048d0944d3c5f50329e0874d">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a3a46707de0b4dff1d2aabf37047d3212"></a><!-- doxytag: member="CWaveIO::openInputFile" ref="a3a46707de0b4dff1d2aabf37047d3212" args="(std::string pMonoWavInputFile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CWaveIO::openInputFile </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>pMonoWavInputFile</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a19b7c3e5792af401a2eaa2703064e8a2"></a><!-- doxytag: member="CWaveIO::operator=" ref="a19b7c3e5792af401a2eaa2703064e8a2" args="(const CWaveIO &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCWaveIO.html">CWaveIO</a>&amp; CWaveIO::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCWaveIO.html">CWaveIO</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa510ff6ab283ba7ce92e8405b5aed505"></a><!-- doxytag: member="CWaveIO::read" ref="aa510ff6ab283ba7ce92e8405b5aed505" args="(void **pData, EAction &amp;pAction, int pTimeout=1000)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CWaveIO::read </td>
          <td>(</td>
          <td class="paramtype">void **&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pTimeout</em> = <code>1000</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>Array of bytes, read from media. The buffer for data will be provided by the read method. Therefore a void** and not a void* is needed. </td></tr>
    <tr><td class="paramname">pAction</td><td>displays what has to be done, it also enables the direction from which data came from </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of bytes read, 0 for EOF and -1 for a timeout or an error </dd></dl>

<p>Implements <a class="el" href="classISampleIO.html#a5843d1feda7bfffb86dd260a08f5516d">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a50b4a495002aca5a6e4e9bdde80fe5cf"></a><!-- doxytag: member="CWaveIO::read" ref="a50b4a495002aca5a6e4e9bdde80fe5cf" args="(void **pData, EAction &amp;pAction, int pTimeout, int pMaxRead)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CWaveIO::read </td>
          <td>(</td>
          <td class="paramtype">void **&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pTimeout</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pMaxRead</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pMaxRead</td><td>max read in bytes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a142ebb8a033f2ffc6f733c70a26ec7d0"></a><!-- doxytag: member="CWaveIO::write" ref="a142ebb8a033f2ffc6f733c70a26ec7d0" args="(void *pData, const EAction &amp;pAction, int pLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CWaveIO::write </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>Address of the Buffer which will be written to the media. </td></tr>
    <tr><td class="paramname">pAction</td><td>displays what has to be done, it also enables the direction from which data came from </td></tr>
    <tr><td class="paramname">pLength</td><td>Length/Size of the buffer (unit: byte) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of bytes written or -1 for an error </dd></dl>

<p>Implements <a class="el" href="classISampleIO.html#ae2026aece7114980b715076b45b906f9">ISampleIO</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a3808e48d44b485bb520dad3c6035d010"></a><!-- doxytag: member="CWaveIO::mAction" ref="a3808e48d44b485bb520dad3c6035d010" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> <a class="el" href="classCWaveIO.html#a3808e48d44b485bb520dad3c6035d010">CWaveIO::mAction</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a4baca210310c73d64ef3289ef2711598"></a><!-- doxytag: member="CWaveIO::mBytePerSample" ref="a4baca210310c73d64ef3289ef2711598" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCWaveIO.html#a4baca210310c73d64ef3289ef2711598">CWaveIO::mBytePerSample</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8e4204695f7396613b8965ea3964d226"></a><!-- doxytag: member="CWaveIO::mDiscardByteCount" ref="a8e4204695f7396613b8965ea3964d226" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classCWaveIO.html#a8e4204695f7396613b8965ea3964d226">CWaveIO::mDiscardByteCount</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a840699af632277923a70a0228fb03256"></a><!-- doxytag: member="CWaveIO::mError" ref="a840699af632277923a70a0228fb03256" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCWaveIO.html#a87e105afa1a6bb0a49fa70abd3ec24ea">EInitError</a> <a class="el" href="classCWaveIO.html#a840699af632277923a70a0228fb03256">CWaveIO::mError</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a869289411bf4dec1b0c8a091a4303c16"></a><!-- doxytag: member="CWaveIO::mReadByteBuffer" ref="a869289411bf4dec1b0c8a091a4303c16" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char* <a class="el" href="classCWaveIO.html#a869289411bf4dec1b0c8a091a4303c16">CWaveIO::mReadByteBuffer</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab3f14eee2da307b2e708de2601f3d774"></a><!-- doxytag: member="CWaveIO::mReadInRealtime" ref="ab3f14eee2da307b2e708de2601f3d774" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classCWaveIO.html#ab3f14eee2da307b2e708de2601f3d774">CWaveIO::mReadInRealtime</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a06434e47bf8160e95b3ba05d09234a04"></a><!-- doxytag: member="CWaveIO::mReplayInput" ref="a06434e47bf8160e95b3ba05d09234a04" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classCWaveIO.html#a06434e47bf8160e95b3ba05d09234a04">CWaveIO::mReplayInput</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aae408d020756faba8e4b8457ed889bc8"></a><!-- doxytag: member="CWaveIO::mStreamInfo" ref="aae408d020756faba8e4b8457ed889bc8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> <a class="el" href="classCWaveIO.html#aae408d020756faba8e4b8457ed889bc8">CWaveIO::mStreamInfo</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a07addea538ef0c82d7c7428f1e150200"></a><!-- doxytag: member="CWaveIO::mWavIn" ref="a07addea538ef0c82d7c7428f1e150200" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCRiffWave.html">CRiffWave</a>* <a class="el" href="classCWaveIO.html#a07addea538ef0c82d7c7428f1e150200">CWaveIO::mWavIn</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abd638048ba09d8ff170aef8639406c4d"></a><!-- doxytag: member="CWaveIO::mWavOut" ref="abd638048ba09d8ff170aef8639406c4d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCRiffWaveWriter.html">CRiffWaveWriter</a>* <a class="el" href="classCWaveIO.html#abd638048ba09d8ff170aef8639406c4d">CWaveIO::mWavOut</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab88b12dbc2d6f32cba9382df7a150fcd"></a><!-- doxytag: member="CWaveIO::sIniSectionName" ref="ab88b12dbc2d6f32cba9382df7a150fcd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string <a class="el" href="classCWaveIO.html#ab88b12dbc2d6f32cba9382df7a150fcd">CWaveIO::sIniSectionName</a><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="wave__io_8h_source.html">wave_io.h</a></li>
<li><a class="el" href="wave__io_8cxx.html">wave_io.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:46 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
